package com.example.exampleproject.net;

import com.example.exampleproject.entity.BaseResponse;
import com.example.exampleproject.entity.Weather;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Headers;
import retrofit2.http.POST;

public interface ApiDefinition {

    @POST("/whapi/json/aliweather/briefforecast3days")
    @FormUrlEncoded
    @Headers("Authorization:APPCODE 95823c42d50441ce85b22cd5968f6f68")
    Observable<BaseResponse<Weather>> getWeather(@Field("lat") String lat);

}
